package com.his.dao.mapper;

import com.his.dao.domain.Do.SelectAllMenuRoleDo;
import com.his.dao.domain.entity.RoleMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author fall
 * @since 2022-11-28
 */
@Mapper
public interface RoleMenuMapper extends BaseMapper<RoleMenu> {
    /**
     * 查看角色菜单列表
     * @param roleId
     * @param name
     * @param page
     * @param pageSize
     * @return
     */
    List<SelectAllMenuRoleDo> selectAll(int roleId, String name, int page, int pageSize);

    /**
     * 查看角色菜单列表个数
     * @param roleId
     * @param name
     * @return
     */
    Long selectAllCount(int roleId, String name);
}
